import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p016 from './p016';
export default async function a007(fd: IFeidaoAiBrowserComponent, e: Event) {
	// todo依据选择的数据的“安全部门编号”取<人员信息total_staff_inf>表，得到“员工编号”、“员工姓名”，并将“员工姓名”渲染在下拉框内。
	const d = e.currentTarget as HTMLSelectElement;
	const safety_department_no = d.value.split(",")[1];
	if (safety_department_no) {
		const res = await nodejs('device-management/zj-000001/s010', {
			filter: {
				safety_department_no
			}
		});
		render(fd, res, p016, 'p016', 'inner');
	}
}
